
const defaultState = {
  homeData: {
    address: '上海市 奉贤区 海湾镇 五四公路 3389号',
  }
};

export default (state = defaultState, action:any ) => {
  switch(action.type) {
    case 'get_init_data':
      console.log('action:', action)
    return {...state, homeData: {
      address: action.payload
    }}
    default:
    return {...state}
  }
}
